// Render Creator
// (c) jimon game studio

#include "IRender.h"
#include "CRender_OpenGL.h"

namespace je
{
	namespace video
	{
		//! Create Render
		video::IRender * JE_ENGINE_FUNCTION_CALL CreateRender(video::GraphicsDriverType Type)
		{
			switch(Type)
			{
			#ifdef JE_RENDER_OPENGL
			case video::GDT_OPENGL:
				{
					video::CRender_OpenGL * Render = NULL;
					JENEW(Render,video::CRender_OpenGL)
					return Render;
				}
			#endif
			default:
				return NULL;
			}
		}
	}
}
